# Find installed raw1394

# find include path
find_path(raw1394_INCLUDE_DIR
   NAMES libraw1394/raw1394.h
   DOC "libraw1394 include path"
)

# find static library
find_library(raw1394_LIBRARY
   NAMES raw1394
   DOC "libraw1394 library"
)

set(raw1394_INCLUDE_DIRS ${raw1394_INCLUDE_DIR})
set(raw1394_LIBRARIES ${raw1394_LIBRARY})

if (raw1394_INCLUDE_DIR AND raw1394_LIBRARY)
   set(raw1394_FOUND TRUE)
   if (NOT raw1394_FIND_QUIETLY)
      message (STATUS "Found libraw1394: ${raw1394_LIBRARY}")
   endif()
else()
   set(raw1394_FOUND FALSE)
   if (raw1394_FIND_REQUIRED)
      message(FATAL_ERROR "Could not find libraw1394")
   endif()
endif()
